/**
 * 作者: hxl
 * 日期: 2025-03-03 20:55:25
 * 备注: 用户限时冲榜表
 */
package com.motu.monstercity.server.game.userdata;
public class UserActTopCrossRank extends UserActTopCrossRankModel {
    public UserActTopCrossRank() {
        super();
    }

    public UserActTopCrossRank(long userId, long rankId,long rankTime ,double score) {
        super();
        putRankId(rankId);
        putUserId(userId);
        putScore(score);
        putActTime(rankTime);
    }

    public void saveMaxScore() {
        if (getMaxScore() < getScore()) {
            putMaxScore(getScore());
        }
    }
}
